package com.rh.manage.controller;

import com.rh.manage.annotation.ComponentBean;
import com.rh.manage.constants.FrameCategoryEnum;
import com.rh.manage.service.GitService;
import com.rh.manage.service.MainFrameService;
import org.springframework.beans.factory.annotation.Autowired;

@ComponentBean(FrameCategoryEnum.PRO_MANAGE)
public class MainFrameController {

    @Autowired
    private MainFrameService mainFrameService;
    @Autowired
    private GitService gitService;

    /**
     * 打开思维导图app
     */
    public void openMindApp() {
        mainFrameService.openMindApp();
    }

    /**
     * 保存配置
     */
    public void saveConfig() {
        mainFrameService.saveConfig();
    }

    /**
     * git同步
     */
    public void gitSync() {
        gitService.pushOpt();
    }
}
